import axios from '@/libs/api.request'

export const getGoodsList = () => {
  return axios.request({
    url: '/goods/goods_info/',
    method: 'get'
  })
}

export const getGoodsDetailList = (goods_id) => {
  console.log(goods_id)
  return axios.request({
    url: '/goods/goods_detail/'+goods_id+'/',
    method: 'get'
  })
}
export const querygoods = ( user_id ) => {
  return axios.request({
    url: 'order/querygoods/'+user_id+'/',
    method: 'get'
  })
}

export const getGoodsCategoryList = (goods_category) => {
  console.log(goods_category)
  return axios.request({
    url: '/goods/goods_category/'+goods_category+'/',
    method: 'get'
  })
}

